package com.bwie.House.service.impl;
import com.bwie.House.service.HomeService;
import com.bwie.common.utils.PageUtils;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.common.utils.PageUtils;
import com.bwie.common.utils.Query;

import com.bwie.house.dao.HomeDao;
import com.bwie.house.entity.HomeEntity;

import java.util.Map;


@Service("homeService")
public class HomeServiceImpl extends ServiceImpl<HomeDao, HomeEntity> implements HomeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<HomeEntity> page = this.page(
                new Query<HomeEntity>().getPage(params),
                new QueryWrapper<HomeEntity>()
        );

        return new PageUtils(page);
    }

}